package com.dream.domain.user;

import com.dream.domain.Domain;
import org.joda.time.LocalDate;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;

/**
 * Created by IntelliJ IDEA.
 * User: ZhongGang
 * Date: 12-12-22
 * Time: 下午3:02
 */
public class User extends Domain implements UserDetails {
    private Token token;
    private ContactInfo contactInfo;
    private LocalDate birthday;

    public User() {
    }

    public User(Token token, ContactInfo contactInfo) {
        this.token = token;
        this.contactInfo = contactInfo;
    }

    @Override
    public Collection<? extends GrantedAuthority> getAuthorities() {
        throw new UnsupportedOperationException("Not yet implemented!");
    }

    @Override
    public String getPassword() {
        throw new UnsupportedOperationException("Not yet implemented!");
    }

    @Override
    public String getUsername() {
        throw new UnsupportedOperationException("Not yet implemented!");
    }

    @Override
    public boolean isAccountNonExpired() {
        throw new UnsupportedOperationException("Not yet implemented!");
    }

    @Override
    public boolean isAccountNonLocked() {
        throw new UnsupportedOperationException("Not yet implemented!");
    }

    @Override
    public boolean isCredentialsNonExpired() {
        throw new UnsupportedOperationException("Not yet implemented!");
    }

    @Override
    public boolean isEnabled() {
        throw new UnsupportedOperationException("Not yet implemented!");
    }
}
